Skip to contents

Returns the parts set with set_parts, each rendered as it appears in the formula.

Usage

spec_parts(spec)

Arguments

spec

A model_spec object.

Value

A character vector, which is empty if the spec does not have any parts.

See also

Examples

m <- model_spec(x1) |> set_parts(model_spec(firm, year), endo ~ inst)
spec_parts(m)
#> [1] "firm + year" "endo ~ inst"